using UnityEngine;

namespace JH
{
    /// <summary>
    ///  当Toggle开启时设置为最后一个子物体
    /// </summary>
    [ExecuteAlways]
    public class SetAsLastSiblingOnToggleOn : BaseToggleCustomEvent
    {
        protected override void OnToggleOn()
        {
            transform.SetAsLastSibling();
        }
    }
}